package com.yohann.boot;

import com.yohann.boot.common.annotation.EnableTestConfig;
import com.yohann.boot.config.Constants;
import com.yohann.boot.service.LogRecordService;
import com.yohann.boot.service.impl.SaveLogServiceImpl;
import com.yohann.boot.util.LogUtils;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

/**
 * 启动类
 *
 * @author Yeung Wah
 * @since 2021/4/17
 */
@EnableTestConfig
@SpringBootApplication(scanBasePackages = {Constants.BASE_PACKAGE})
@PropertySource(value = "classpath:config.properties", encoding = "utf-8")
public class Application {
    public static void main(String[] args) {
        LogUtils.applicationLog(SpringApplication.run(Application.class, args));
    }
}